Skip to content

fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) - #33995

Merged
objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/area-E1b-33385
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/area-E1b-33385

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #33385
Fixes #33401

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: updated here — content/docs/data-modeling/import-mappings.mdx (no skills/** file teaches an _env answer)

BREAKING for a read of an environment customization (a package-less row) of a name whose every holding package is disabled: the bare read and the execution read answered the row (200) and now answer 404 as if it were not saved; re-enabling the package serves it again. _env of such a name moves from 409 naming the disabled packages to 404, at /meta on both transports and at the import door's mappingName: "_env/NAME" (404 MAPPING_NOT_FOUND). The list and the execution list (GET /meta/:type) leave out the same customization while every holder is disabled, so they agree with the read of the name. On the write side, a save naming no package at a member the holder never ships is still accepted and kept, but is hidden from those reads until a holder is enabled again; a delete still removes it; a save at a shipped member is still refused 403 NOT_OVERRIDABLE. _env keeps the 409 in three cases: an enabled package holds the name; it holds it through a stored row the read of the name serves; or the read carries ?state=draft / ?preview=draft from a caller admitted to drafts, or ?layers=. That 409 names only the disabled registry holder. No migration: nothing stored changes (ADR-0087 not-required (no-migration-prescription), in the changeset).

The claim declared Clause-②: no. The declaration self-check reads the #33401 withhold (served 200 to 404) as a narrowing and finds no widening: the _env move replaces one refusal with another. So this body and the changeset declare no (narrowing). #33646's yes (narrowing) was for a diff that both widened and narrowed. The deviation is reported to the seat.

维护者速读

  • 改了什么:某个元数据名称的所有持有包都被停用时,/meta/:type/_env/:name 在两个入口(REST 与 runtime)从 409(点名被停用的包)改为 404,导入接口的 mappingName: "_env/名称" 同样改为 404 MAPPING_NOT_FOUND;环境里对这些包的名称做的无包定制(含包从未发布的语言版本)在停用期间不再被读出,列表与执行列表也一并不再列出,重新启用后原样恢复。
  • 为什么改:停用包是运维处理冲突的常规手段,但 _env 仍然报冲突并点名已停用的包,裸读还在返回属于已停用包的定制内容;objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183 第 17 行(R4-B2)与 metadata-protocol: the bare read still serves an App-pair row of an email_template member whose only holder is disabled #32814 的席位裁决要求按"什么都没存"作答。
  • 风险与回滚:只改读路径判定,不删数据;若某个启用包只通过未水合的存储行持有该名称,_env 仍保持 main 的 409;带 ?state=draft、?preview=draft 或 ?layers= 的 _env 读取也保持 409,不会露出启用包的草稿(均已钉住并做消融)。回滚即 revert 本 PR。
  • 先看:packages/metadata-protocol/src/protocol-meta-item-face.ts(packagelessRowWithheld:启用包通过存储行持有名称时不再扣留,风险最高)、packages/metadata-protocol/src/protocol-meta-list-reads.ts(列表按同一判定剔除)、packages/rest/src/meta-qualified-item-route.ts(admitEnvironmentAddress:标记的拒绝只对普通读取与无草稿权限的调用方放行为 404)。
  • 两分钟验证:pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-qualified-item-route.test.ts,预期 381 个测试全部通过(在 0f5f95d0 实测)。
  • 需要你做的:无,席位落地。

What changes

One judgment, shared by both cards: a name whose every holder is disabled answers as if nothing were stored. That covers the bare read (served and execution faces), its /layers, and _env on both transports. A disabled package's customization is never served, and nothing stored is touched.

  • [ADR-0150 D4] The read naming no package withholds a package-less customization row of a key whose every holder is disabled #33401, protocol-meta-item-face.ts: the read naming no package now also withholds a package-less row it reached when the row's key is held only by disabled packages (packagelessRowWithheldHolder). The key's holders come from the registry's one owner rule, overlayRowBinding with every holder counted (seat ruling 6882483833 on metadata-protocol: the bare read still serves an App-pair row of an email_template member whose only holder is disabled #32814: ownership counts every holder, disabled included).
    • null is the environment's own item (D3 (a)) and is served.
    • One holder: withheld when that holder is disabled.
    • Two or more: judged as the name's holders are (disabledOnlyHolderOf).
    • Member grain is not part of the key, so a locale the holder never shipped is withheld too.
  • ADR-0150: the _env qualifier admits a name held only by disabled packages (404, not 409) on the item face (#32183 row 17, R4-B2) #33385: admitEnvironmentQualifier (protocol-exact-qualifier.ts) still refuses a name only disabled packages hold. It is synchronous, it reads no stored rows, and its declared signature lives in protocol.ts. The refusal now carries a registered-symbol mark (objectstack.metadata-protocol.disabledHoldersOnlyRefusal, the same pattern as the face's storedRowHoldersRefusal), set only after the read it would admit has passed the 501 judgment.
    • Each _env door handles the mark in admitEnvironmentAddress: packages/rest/src/meta-qualified-item-route.ts and packages/runtime/src/domains/meta.ts.
    • If the read naming no package (getMetaItem) withholds the name, the door admits _env, and the read answers 404 naming no package.
    • If that read serves an item, or refuses, an enabled package holds the name through a stored row the registry has not read, and the 409 stands, as on main.
    • Review S1: only the read that judged the name is admitted this way. The marked 409 stands, as on main, for exactly three reads, which read other rows than the plain read: ?state=draft (any case) and ?preview=draft from a caller mayReadPendingDrafts admits to drafts, and the deprecated layered view ?layers=. A caller who may not read drafts reads the active rows whatever switch it sends, so its draft switch is judged as the plain read (404), on both transports alike. REST asks resolveExecCtx for that admission, which is why rest-server.ts hands the qualified route its resolveExecCtx (deviation, approved by the area seat).
  • Review S2, packages/rest/src/import-mapping.ts#namedMappingRead: the import door's _env/NAME reads the same mark and admits it the same way. A mapping only disabled packages hold answers 404 MAPPING_NOT_FOUND, naming no package, as GET /meta/mapping/_env/NAME answers 404.
  • content/docs/data-modeling/import-mappings.mdx documents the new 404 (review S3).
  • Review#2 S1, protocol-meta-list-reads.ts#readFlattenedMetaItems (file approved by the area seat): the list and the execution list now leave out a package-less item that the read of its name withholds, through the same packagelessRowWithheld. Before, both lists still carried an fr-FR row the by-name read answered 404.
  • Review#2 S5, protocol-meta-item-face.ts#packagelessRowWithheld: the arm is judged over the active rows the face already read. If an enabled package holds the name through one of those stored rows (one the registry has not hydrated, so overlayRowBinding does not see it), the package-less row is served, as on main. Before this fix the arm withheld it in that cell. The list asks the same helper, which reads the active rows itself.
  • Review#2 S4: the residual 409 names only the disabled registry holder, [{ kind: 'package', packageId: B }], as on main; the enabled package holding the name through a stored row is not named. Pinned in both doors' CONTROLs.
  • Review#2 S3, measured: with every holder disabled, a save naming no package at a member the package never ships is accepted and kept, as on main, and is now hidden until a holder is enabled again; a delete of it removes the row; a save at a shipped member is refused 403 NOT_OVERRIDABLE, as before. Pinned in disabled-holder-packageless-row-doors.test.ts.
  • packages/objectql/src/registry.ts: read only. H3 holds: overlaySlotBinding counts every composite holder, so a package-less row of a disabled holder's key binds to that holder, and getEnvironmentScopedItem answers undefined for it.
  • The PM's H2 was half true. Without a mark, the _env read never reached the face as _env. Admitting on the registry alone would have served an enabled package's unhydrated stored row at _env. The mark plus the door's bare-read check closes that without touching protocol.ts.
Read State FROM (origin/main 1e65a38, measured) TO
GET /meta/:type/_env/:name, REST and runtime, all 18 PACKAGE_SCOPED_READ_TYPES only holder disabled, no row 409 RESOURCE_CONFLICT naming the disabled holder 404 RESOURCE_NOT_FOUND, naming no package
same only holder disabled, a package-less registry row of the name 409 naming it 404
same, dashboard email_template permission report only registry holder disabled, an enabled package's unhydrated stored row the bare read serves 409 409 (unchanged, CONTROL)
same, the other 14 types same fixture; their bare read serves no row of that shape 409 404, as their bare read
protocol admitEnvironmentQualifier (objectql pin, row 17) the only holder disabled 409 naming X 409 naming X, marked; the bare read withholds, so both doors answer 404
bare GET /meta/email_template/:name?member=fr-FR and the execution read the only holder disabled, a package-less stored row of a locale it never shipped (stored, or stored and hydrated), both registration orders, disabled before or after 200, the row the holder's withheld item (404), equal to the answer with no row stored
same two holders, both disabled 200, the row withheld
_env, bare read the holder re-enabled 409 naming it / the row unchanged
_env with ?state=draft (any case) or ?preview=draft, REST and runtime, all 18 types only registry holder disabled, an enabled package's draft row only 409 409 (unchanged, CONTROL, review S1)
_env with ?layers=true, same only registry holder disabled, an enabled package's unhydrated active row 409 409 (unchanged, CONTROL, review S1)
import POST …/import with mappingName: "_env/NAME" the only holder of the mapping disabled 409 RESOURCE_CONFLICT naming it 404 MAPPING_NOT_FOUND, naming no package; nothing written
same the holder re-enabled 409 naming it unchanged (CONTROL)
bare read, /layers package-less row at a member the holder ships 404 404 (unchanged, CONTROL)
_env, protocol admitEnvironmentQualifier (review L2 N3) the only holder disabled, on an engine whose registry has no package-scoped resolver for the type (no by-name reads; not a production composition) 409 RESOURCE_CONFLICT naming the holder 501 NOT_IMPLEMENTED, the read that engine cannot judge (refusal to refusal)
bare GET /meta/action/:name (objectql pin, review L2 S1), both registration orders the only holder disabled, ships the action on account; a package-less action of the name on contact served (main since #33898; measured here with the arm ablated) served, the environment's own item, no _packageId (unchanged, CONTROL); re-enabled, the same
same same, the package-less action on account withheld (the stamped-item rules) withheld (unchanged, CONTROL); re-enabled, served under the holder's envelope
_env with a draft switch from a caller who may not read drafts, REST and runtime, all 18 types only registry holder disabled 409 404 RESOURCE_NOT_FOUND, as its plain read (both transports agree)
getMetaItems / getMetaItemsForExecution (list, execution list) the only holder disabled, a package-less row at a never-shipped locale (saved after boot, or hydrated at boot) the row listed not listed; re-enabled, listed again (CONTROL)
bare read and both lists, either order X's registry holder disabled, enabled Y holds the name through an unhydrated stored row, a package-less row served and listed unchanged (CONTROL, review#2 S5); _env keeps the marked 409
save / delete naming no package every holder disabled; never-shipped member / shipped member saved and served / 403 saved and hidden until re-enable, delete removes it / 403 (unchanged)

The served-to-404 rows are narrowings (hence Clause-②: no (narrowing), the ! title and the BREAKING banner). The _env rows, and the import door's, replace one refusal with another (409 to 404). No answer widens.

Tests

  • packages/objectql/src/package-scoped-exact-qualifier.test.ts (the face's shared real-registry harness; the area seat approved this file-surface extension):
    • The R4-B2 _env pin now asserts the marked 409 plus the withheld bare read. An unmarked-with-the-holder-enabled CONTROL is added beside it.
    • New top-level [#33401] describe, the bare read at a never-shipped locale: four orders on both faces with re-enable as CONTROL; the answer with the row stored equals the answer with none; two holders both disabled, then both re-enabled giving the read's own 409; the hydrated row.
    • CONTROLs: an enabled holder, the environment's own item, and a row at a shipped member.
  • packages/rest/src/meta-qualified-item-route.test.ts and packages/runtime/src/domains/meta-qualified-item-read.test.ts, for every PACKAGE_SCOPED_READ_TYPES type:
    • _env answers 404 beside the other addresses' 404; re-enabled, the 409 naming the holder (CONTROL).
    • A package-less registry row: the bare read, /layers and _env answer 404; re-enabled, the 409.
    • The unhydrated stored-row CONTROL, with the four row-serving types named explicitly so its 409 leg cannot pass vacuously.
    • Review S1 CONTROL: with an enabled package's draft row only, _env with ?state=draft, ?state=DRAFT and ?preview=draft answers 409 and never the draft. With its unhydrated active row, _env?layers=true answers 409 and never the row.
    • Review S1 draft-switch cell: a member caller who may not read drafts sends ?state=draft, and both transports answer 404 RESOURCE_NOT_FOUND, the same answer.
    • Review#2 S4: the standing 409's details.candidates is exactly [{ kind: 'package', packageId: B }], the disabled registry holder, in the draft/layered CONTROL and the row-holder CONTROL, on both transports.
    • Both harnesses' engine doubles now answer find from stored rows (empty unless a pin stores one); findOne stays main's null.
  • packages/rest/src/import-integration.test.ts (review S2, real engine and protocol): with the only holder disabled, _env/task_pkg_feed answers 404 MAPPING_NOT_FOUND naming no package, GET /meta/mapping/_env/task_pkg_feed answers 404, and no row is written. Re-enabled, the 409 naming the holder (CONTROL).
  • New packages/objectql/src/disabled-holder-packageless-row-doors.test.ts (real ObjectQL engine, in-memory driver, real protocol; 5 tests):
    • Review#2 S1: a package-less fr-FR row, saved after boot or hydrated at boot, with the only holder disabled: the by-name read withholds it and neither list nor execution list carries any item of the name. Re-enabled, both list en-US, fr-FR, zh-CN (CONTROL).
    • Review#2 S3: with the holder disabled, a save naming no package at fr-FR succeeds and keeps one package-less row, the read and both lists hide it, a save at shipped en-US is refused 403 NOT_OVERRIDABLE; re-enabled it is served; a delete while disabled removes the row.
    • Review#2 S5, both orders (the by-name read first, the list first): X disabled, enabled Y holding the name through an unhydrated stored row, a package-less fr-FR row. The read serves ENV fr at fr-FR and Y's OTHER en bare, both lists carry fr-FR, as on main; admitEnvironmentQualifier still throws the marked 409.
  • Review L2 S1, package-scoped-exact-qualifier.test.ts [review L2 S1] (4 tests): the action legs above, each in both registration orders, with re-enable as CONTROL.
  • Ablations: scripts/ablation-replace.mjs --hold. Each mutate leg on metadata-protocol was rebuilt and ablation-dist-preflight returned 0; each restore leg was rebuilt, --absent returned 0, and the restore was proved blob == HEAD.
    • [ADR-0150 D4] The read naming no package withholds a package-less customization row of a key whose every holder is disabled #33401 arm removed (at 71880ce, face unchanged since): objectql 7 red of 319, all seven moved cells; every CONTROL green.
    • The mark removed: objectql 1 red of 320, the row 17 pin. rest 50 red of 353 and runtime 50 red of 363: 18 types times 2 404-pins, plus the 14 non-row-serving types' 404 leg.
    • The door's withheld check removed: rest 4 red of 353 and runtime 4 red of 363, exactly the four row-serving types' 409 CONTROL.
    • Review S1, the plain-read guard removed (ablation-replace --delete; the mutation landed, and the restore matched the HEAD blob): rest 18 red of 371 and runtime 18 red of 381, one per type. In these harnesses findOne answers null, so the ablated door answers 404 NO_DRAFT.
    • A one-time probe (not committed) gave the doubles a row-serving findOne:
      • Without the guard, both transports answered 200 with the enabled package's draft for all 18 types. This is the widening review S1 describes.
      • With the guard, both stayed green.
      • With only the ?layers= arm removed, 14 types on each transport answered _env?layers=true with 404 instead of 409. That swaps one refusal for another; it does not widen. The guard keeps main's 409.
    • Review S1 admission (the draft-switch judgment), the caller's admission ignored so every draft switch keeps the refusal: rest 18 red of 371 and runtime 18 red of 381, the member-caller cell for each type.
    • Review#2 S5, at 69f48871: enabledRowHolds(...) ? undefined : replaced so the arm always withholds; rebuilt, preflight marker in 2 dist files. objectql 2 red of 330, exactly the two S5 orders. Restore: blob == HEAD, git diff HEAD empty, rebuilt, --absent exit 0.
    • Review#2 S1, at 69f48871: the list's packagelessRowWithheld call replaced by a never-true marker; rebuilt, preflight in 2 dist files. objectql 3 red of 330: both S1 cells and the S3 test's list assertion. Restore proved the same way.
    • Review L2 S1, after the merge of main, at 8bbac030 (test text as committed; the later amend changed only its comment), objectql 342 tests:
      • The arm removed (packagelessRowWithheld never withholds): 10 red, every [#33401] withhold cell and the lists; both action legs stay green.
      • The arm's binding-null exemption replaced by the name's holders (disabledOnlyHolderOf): 2 red, exactly the two other-object action cells.
      • The face's stamped-item rules removed together (isActionWithheldByDisabledPackage, isItemOfDisabledPackage): 4 red, the two same-object action cells and the two shipped-member CONTROLs. With isItemOfDisabledPackage alone removed, only those two CONTROLs went red.
      • Each mutate leg was rebuilt with ablation-dist-preflight exit 0. Each restore was proved by blob == HEAD and an empty git diff HEAD, then rebuilt with --absent exit 0.
    • Review S2, the import door's mark check replaced by a bare rethrow: 1 red of 61 in import-integration.test.ts, the new pin; the 409 naming the holder came back.

Acceptance notes

Deviations

  • packages/rest/src/rest-server.ts: the qualified route's host object now hands it resolveExecCtx, on its own line as every registrar host spells it (execctx-consumer-census unchanged). Outside the claimed surface; approved by the area seat.
  • packages/metadata-protocol/src/protocol-meta-list-reads.ts: the list filter (review#2 S1). Approved by the area seat for this.
  • packages/objectql/src/disabled-holder-packageless-row-doors.test.ts: a new test file for the review#2 S1/S3/S5 pins, on a real ObjectQL engine and protocol.

Verification

All at head 0f5f95d0, which merges main at 35cc6638. The box is shared, so wall-clock figures are not idle-box figures.

Builds, typecheck and suites
  • After the merge: pnpm install --frozen-lockfile exit 0, and the closure build of metadata-protocol, objectql, rest and runtime exit 0, with lock VERDICT command-exit 0.
  • typecheck exit 0 for metadata-protocol, objectql, rest and runtime.
  • objectql disabled-holder-packageless-row-doors.test.ts + package-scoped-exact-qualifier.test.ts: 342/342. rest meta-qualified-item-route.test.ts: 381/381.
  • Full suites, each exit 0:
    • metadata-protocol: 344 passed, 9 skipped files; 22946 passed, 45 skipped tests.
    • objectql: 599 files; 13307 tests.
    • rest: 413 files; 8534 passed, 332 skipped.
    • runtime: 606 files; 11127 passed, 19 skipped.
Dogfood battery (narrowing arm)
  • At 0f5f95d0: pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build exit 0, then pnpm --filter @objectstack/dogfood test exit 0.
  • Test Files 469 passed, 3 skipped (472). Tests 3974 passed, 42 skipped (4016).
  • Lock VERDICT command-exit 0.
Gates

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12

…e-less row of a key whose every holder is disabled

A package-less row whose key an installed package holds is that holder's
customization (ADR-0150 D4, owned over every holder, disabled included).
With every holder disabled, the bare read on the served and execution faces
now answers as if no row were stored, at any member, a locale the holder
never shipped included; the row is kept and served again on re-enable. The
environment's own item (no holder at its key) is served as before.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ackages hold

A disabled package holds no name, so `/meta/:type/_env/:name` of a name
only disabled packages hold is admitted as a name no package holds and
answers the read's own 404 on both transports, where it refused 409 naming
the disabled packages. The item face withholds every customization of such
a name with its holders, so the read never serves one.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…nv` and package-less row reads

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…package holds the name through a stored row

The protocol's `_env` admission cannot read stored rows, so a name only
disabled packages hold in the registry is still refused, now marked. Each
`_env` door admits that marked refusal only when the read naming no package
withholds the name, and answers its 404; when that read serves an item, an
enabled package holds the name through its stored row and the 409 stands.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…holder CONTROL's stored row

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…NG banner and ADR-0087 disposition

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
… on main

The stored-row double answers `find` only, which is what the bare read
uses for the row-holder CONTROL; `findOne` returns to main's null, so the
doubles declare no findOne body the engine-double contract has to pin.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
The diff narrows (a served customization now answers 404) and widens
nothing: the `_env` move replaces one refusal with another.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/metadata-protocol, @objectstack/rest, @objectstack/runtime, touching 49 documentable anchor(s).

33 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 01598d936f47378c02354a9c20cb08f0346a8c2c.

⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 cross-cutting symbol(s) contributed no route anchor: resolveExecCtx (35 routes)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 44 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 01598d936f47378c02354a9c20cb08f0346a8c2c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c224ea26019eb65d1fe342b41df07057c70e594a — the merge of head 0f5f95d08060d9c68390c6fe4f11bfece0ffb084 into base 01598d936f47378c02354a9c20cb08f0346a8c2c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c224ea26019eb65d1fe342b41df07057c70e594a && git checkout c224ea26019eb65d1fe342b41df07057c70e594a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 01598d936f47378c02354a9c20cb08f0346a8c2c 0f5f95d08060d9c68390c6fe4f11bfece0ffb084 && git checkout -B drift-repro 01598d936f47378c02354a9c20cb08f0346a8c2c && git merge --no-ff 0f5f95d08060d9c68390c6fe4f11bfece0ffb084

node scripts/docs-audit/affected-docs.mjs --json 01598d936f47378c02354a9c20cb08f0346a8c2c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 01598d936f47378c02354a9c20cb08f0346a8c2c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Request: review · PR #33995 · area S5 · Fixes #33385, #33401 · head 4c28847889579aa505b2d0b9d5a4e032da042307

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Review claim · head 4c28847 · 2026-11-15T15:43Z (review-c, S5)

Contract-review-claim: session_01QsR2jRMKz5NhWVrE4E1U5x · head 4c28847 · 2026-11-15T15:43Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4c28847889579aa505b2d0b9d5a4e032da042307
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-exact-qualifier.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/objectql/src/package-scoped-exact-qualifier.test.ts, packages/rest/src/meta-qualified-item-route.test.ts, packages/rest/src/meta-qualified-item-route.ts, packages/runtime/src/domains/meta-qualified-item-read.test.ts, packages/runtime/src/domains/meta.ts + read, not reviewed: packages/objectql/src/registry.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, protocol-lock-version-gates.ts, protocol-environment-rows.ts, packages/rest/src/import-mapping.ts, packages/rest/src/meta-item-read-routes.ts, ADR-0150 D3 to D5, ruling 6882483833

① Derived judgments

  • Bare and execution read of a package-less row whose key only disabled packages hold: 200 to the withheld item (404). Right: packagelessRowWithheldHolder asks the registry's owner rule over every holder, and null (no holder at the key) stays served.
  • /meta/:type/_env/:name for a name only disabled packages hold: 409 RESOURCE_CONFLICT to 404 RESOURCE_NOT_FOUND, REST and runtime, naming no package. Right for the active read; not for the draft reads (S1).
  • Protocol admitEnvironmentQualifier: still 409, now marked by a registered symbol. No export or signature moves. Every _env consumer must read the mark; one does not (S2).
  • File surface: 8 files. protocol.ts, protocol-save.ts and registry-question.ts are untouched; registry.ts is read only.
  • The rejection pins assert status and code together on both transports, and that no body names the disabled package. The ablation counts match the pins as written: 7 for the [ADR-0150 D4] The read naming no package withholds a package-less customization row of a key whose every holder is disabled #33401 arm, 18 x 2 + 14 = 50 for the mark, 4 for the door's withheld check.
  • Check-runs when read: 22 success, 16 skipped, 0 failed, 11 in progress (Test Core 1/8 to 8/8, Build Core, Type Check workspace, Type Check consumer gates). This record holds no verdict for those 11.

② Semver level

  • patch on metadata-protocol, rest and runtime with Metadata-protocol: none: right. objectql is test-only.
  • Kit: ! in the title and the changeset summary, present. BREAKING banner in both, present. ADR-0087 marker, exactly one. Dogfood battery full and green, pinned to 00d7daf5; this head differs from it by one changeset line (N1). Skills-docs: line absent (S3).
  • Clause-②: no (narrowing) holds only if S1 closes in code. If the draft cell stays, the diff also widens, and that line and "No answer widens" are wrong.

③ Boundary flags

④ Design judgment

The narrowing makes a declared refusal real. ADR-0150 D3: a disabled package holds no name. D4 and R15: a package-less row over a package-held name is that holder's customization. Ruling 6882483833: withhold it, serve the environment's own item. Nothing declared is taken at the consumer; the row is kept and returns on re-enable. Probes, read in the tree:

  • Environment's own item: admitted before the mark, and the face's arm answers null. Holds.
  • Both holders disabled: binding undefined, then disabledOnlyHolderOf, withheld; _env marked, 404. Holds.
  • One of two disabled: the 409 is unmarked and names only the enabled holder. Unchanged.
  • Package-less caller: the bare read is that caller; both faces pinned. Holds.

S1 (should-fix) — the _env door judges with the active read, then admits a draft read. admitEnvironmentAddress (both doors) calls getMetaItem with type, name and member only; the admitted read keeps ?state=draft and ?preview=draft. Read, not run: X is the only registry holder and disabled, and enabled package Y holds only a draft row of the name. strictDraftReadAddress answers Y (packagelessAddress counts rows alone), the item is stamped Y, and no arm of the face withholds it. main answers 409; this head answers 200 with Y's draft at the environment's address, the case the door's own comment says stays refused. Undeclared, unpinned, a widening. Fix: carry state and preview into the judging read, or refuse a marked draft read; pin both transports.

S2 (should-fix) — a third _env door keeps the old answer. packages/rest/src/import-mapping.ts#namedMappingRead calls admitEnvironmentQualifier for mappingName: "_env/NAME", and its docblock promises the answer of GET /meta/mapping/_env/NAME. It does not read the mark: the import door still answers 409 naming the disabled package where /meta now answers 404. Fix: admit there the same way, or file the card and name the open door in the changeset.

S3 (should-fix) — Skills-docs: is missing from the PR body and the changeset; a (narrowing) owes it (content/docs/data-modeling/import-mappings.mdx documents the _env 409).

N1 (nit) — the battery pin names 00d7daf5, not this head; accepted deviation.
N2 (nit) — the action CONTROL of #33401 is unpinned; follow-up card owed by the seat.
N3 (nit) — the stored-row 409 CONTROL is live on 4 types only.

No must-fix.

Implemented-by: claude/area-E1b-33385
Reviewed-by: session_01QsR2jRMKz5NhWVrE4E1U5x

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Review — FAIL (should-fix open; this head is not landable)

Head-sha: 4c28847889579aa505b2d0b9d5a4e032da042307
Reviewer: review-c (areas S5 + S6) · read 2026-11-15T15:52Z
Implemented-by: claude/area-E1b-33385 (S5 session_01QsR2jUcj2x2Wr4UErwBi12) · Reviewed-by: session_01QsR2jRMKz5NhWVrE4E1U5x
Contract-review record at this head: the CONTRACT_REVIEW_TIER comment directly above (narrowing face; isolated sub-agent; adopted). It has no must-fix and three open should-fix items, which the queue guard reads as open, so a delta review is owed. I confirmed S1's mechanism in the diff: both new admitEnvironmentAddress helpers call getMetaItem with { type, name, member } only.

The design is accepted. The narrowing makes ADR-0150's declared refusal real (D3, D4/R15, seat ruling 6882483833) and takes no capability away: the row is kept and comes back on re-enable. REST and the runtime agree on 404 RESOURCE_NOT_FOUND. The rejection pins assert both status and code, and the ablation counts match the pins. The file surface stays clear of protocol.ts, protocol-save.ts and registry-question.ts. The kit is complete except for S3: !, the BREAKING banner, one ADR-0087 marker, and the full dogfood battery.

  1. S1 (should-fix): the _env door judges the active read but admits a draft read.
    • admitEnvironmentAddress (REST and runtime) asks getMetaItem without the request's state=draft / preview=draft.
    • Case: X is the only registry holder and is disabled, and an enabled package Y holds only a draft row of the name. Main answers 409 and this head answers 200 with Y's draft at the environment's address.
    • That is an undeclared, unpinned widening, which also makes "No answer widens" false.
    • Fix: pass the draft selector into the withheld check, and pin that case.
  2. S2 (should-fix): a third _env door keeps the old answer. packages/rest/src/import-mapping.ts namedMappingRead calls admitEnvironmentQualifier for mappingName: "_env/NAME" and never reads the new mark. It still answers 409 naming the disabled package, while /meta/mapping/_env/NAME now answers 404. Its docblock promises the two give the same answer. Route it through the same check and pin it.
  3. S3 (should-fix): the Skills-docs: line is missing from the PR body. review-checklist requires it on any (narrowing).
  4. Nits.
  5. Gates not judged. At review time 22 checks succeeded, 16 were skipped and 11 were in progress (Test Core ×8, Build Core, Type Check ×2), with none red.

The delta review on the next head will cover S1–S3 plus any code that moves.

…hat judged the name

A draft read (`?state=draft`, `?preview=draft`) or the deprecated layered
view (`?layers=`) reads other rows than the plain read the door judges
with, so for it the refusal of a name only disabled packages hold stands,
as on main. Read off the raw query, so the answer depends neither on the
caller's draft admission nor on whether a draft exists.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…packages hold as `/meta` does

`namedMappingRead` now reads the refusal's mark: when the read naming no
package withholds the name, the mapping answers not found, naming no
package, where it was refused 409 naming the disabled holder.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…404 at `_env/NAME`

The changeset gains the Skills-docs line and names the import door's move
and the draft and layered reads that keep the 409.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@github-actions github-actions Bot added size/l and removed size/m labels Nov 15, 2026
…admitted to them

The guard read the raw query, which the runtime draft-switch census
reads as an unadmitted draft switch. Both doors now judge with the read the
caller is actually answered: an admitted draft switch or the layered view
keeps the marked refusal (409, as on main); a caller `mayReadPendingDrafts`
does not admit is answered the plain read, and judged as it. The REST
qualified route is handed `resolveExecCtx` for that, asked only once the
refusal is marked.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…red override as effective (objectstack-ai#34169)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbNTugWasvhTMrtCZiFGrZYK)_

Part of objectstack-ai#32849 (the bare layered read's `effective` exit; the read
naming no member, measured below, stays open on objectstack-ai#32849)

Clause-②: no
Metadata-protocol: none

**objectstack-ai#33885 has merged.** This branch started from `claude/area-E1-32622`.
After objectstack-ai#33885 merged, `origin/main` was merged in (`c9112d29`), so the
diff is now this PR's own four files (+125/−7). The own-diff patch-id
`c0f3f1897e73032813735aa937738d8e0c8780a6` is unchanged.

## 维护者速读

- 改了什么:App 的 `.custom` pair 存了一行声明覆盖附加包 Z 自有成员 `fr-FR`
的邮件模板(`overrides.package: Z`)。objectstack-ai#33815 之后普通裸读已给出覆盖,但不带包的分层读
`?member=fr-FR&layers=true` 的 `effective` 仍是 Z 原版 `zeta fr-FR`、`overlay`
为空;现在它与 `?package=Z` 一致:`code` 是 Z 原版,`overlay` 和 `effective` 是覆盖,信封指向
Z。
- 为什么改:分层读的 `effective` 定义为「普通读会返回的内容」,声明了的覆盖应在每个给出 Z 该成员的出口被服务(ADR-0146
D8 第 2 项、ADR-0150 D4);Studio 编辑器读的正是这个出口。
- 风险与回滚:只在普通裸读已经改址到 Z 的同一情形下生效(复用同一个判定函数);未声明覆盖、声明给 X 的行(仍 409)、X 自己的
`en-US`、待发布草稿层均不变(已钉)。回滚即还原本 PR,存储数据不变。
- 先看:`packages/metadata-protocol/src/protocol-meta-layered-reads.ts` 中
`declaredOverrideAt` 与 `draftPackageId` 两处。
- 两分钟验证:`pnpm --filter @objectstack/objectql exec vitest run
--maxWorkers=2 src/package-scoped-exact-qualifier.test.ts -t 'the bare
layered read serves'`,预期 6 条全绿。
- 需要你做的:无,席位落地。

## What changes

Own files (four):
`packages/metadata-protocol/src/protocol-meta-layered-reads.ts`,
`packages/metadata-protocol/src/protocol-meta-item-face.ts` (one
`export` keyword and one docblock sentence, no behaviour),
`packages/objectql/src/package-scoped-exact-qualifier.test.ts`,
`.changeset/32849-bare-layered-read-declared-override.md`. No
`protocol.ts` edit.

`getMetaItemLayered`, naming no package and judged neither served nor
refused by `servedAddressJudgment`, now asks
`declaredMemberOverrideAddressOf` (the one predicate the plain read uses
since objectstack-ai#33815, exported from the item face for this). When it names the
member's one enabled shipper Z, the read takes Z's address for its
layers, as the plain read does, so `effective` is the override
`?package=Z` serves.

The pending draft layer (`withDraft`, the Studio door) is not moved: it
stays at the address the strict draft read takes
(`strictDraftReadAddress`), because the plain read's strict draft read
is outside the arm too. Re-addressing it would have made the draft layer
`null` where the strict draft read serves the pair's draft (measured: at
`?package=Z` the draft layer is `null`).

| read (both install orders) | before | after |
|:--|:--|:--|
| bare `?member=fr-FR&layers=true`, row declares Z | code `zeta fr-FR`,
overlay null, effective `zeta fr-FR` | code `zeta fr-FR`, overlay `pair
fr-FR`, effective `pair fr-FR`, envelope Z (= `?package=Z`) |
| same, with drafts, a pair draft pending | draft `pair fr-FR draft` |
unchanged (effective as above) |
| `?package=Z&member=fr-FR&layers=true` | effective `pair fr-FR` |
unchanged |
| bare `?member=en-US&layers=true` (X's own) | `suitex en-US` |
unchanged |
| bare, no row / undeclared pair row | effective `zeta fr-FR`, overlay
null | unchanged |
| bare, row declares X (objectstack-ai#32606 shape) | 409 naming X and Z | unchanged |
| door step 1c, `packagelessLayeredReadRefusal` | no refusal | unchanged
|

Nothing refused becomes served or the reverse; no authorable key or
value moves.

## Tests

New top-level describe in the shared real-`SchemaRegistry` harness
`packages/objectql/src/package-scoped-exact-qualifier.test.ts`:
`[objectstack-ai#32849] the bare layered read serves the pair's declared override of
an addition Z's own locale as effective, as ?package=Z does` (6 tests):

- fix pin, both install orders: bare layers equal `?package=Z`'s
(`effective` deep-equals the `?package=Z` document), step 1c refuses
nothing, `effective` equals the plain bare read, X's `en-US` untouched.
- draft pin: the draft layer is the strict draft read's (`pair fr-FR
draft`), `?package=Z` has none.
- CONTROL no override x2 (no row / undeclared pair row): Z's own, no
overlay.
- CONTROL row declares X: 409 `RESOURCE_CONFLICT` naming X and Z.

BASE measured on `e516f353` (the objectstack-ai#33885 head) with a temporary probe in
this harness before any edit: bare effective `zeta fr-FR`, overlay null,
in both orders; `?package=Z` effective `pair fr-FR`.

<details><summary>Ablations (each through
`scripts/ablation-replace.mjs`, metadata-protocol rebuilt,
`ablation-dist-preflight` marker present in 2 dist files, auto-restore
blob equals HEAD with `git diff HEAD` empty, rebuilt, marker absent from
all 24 dist files)</summary>

| | mutation | result (`-t 'the bare layered read serves'`) |
|:--|:--|:--|
| A1 | the arm's call replaced by `undefined` | 3 failed, 3 passed: both
fix pins, `expected [ 'zeta fr-FR', null, …(2) ] to deeply equal [ 'zeta
fr-FR', 'pair fr-FR', …(2) ]`; the draft pin, `expected [ 'zeta fr-FR',
'pair fr-FR draft' ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft'
]` |
| A2 | `isServedOverrideRowOf(row, shipper, installed)` replaced by
`true` | 2 failed, 4 passed: the undeclared-row CONTROL, `expected [
'zeta fr-FR', 'pair fr-FR', …(2) ] to deeply equal [ 'zeta fr-FR', null,
…(2) ]`; the X-declared CONTROL, `the read answered; a refusal was
expected` |
| A4 | the draft address re-addressed with the arm (`declaredOverrideAt
?? request.packageId`) | 1 failed, 5 passed: the draft pin, `expected [
'pair fr-FR', null ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft'
]` |

</details>

## Acceptance notes

- The no-row CONTROL pins an unchanged outcome by construction:
re-addressed to Z, Z's exact layers with no row answer Z's own `fr-FR`
too. The undeclared-row CONTROL is the one that catches an arm ignoring
the declaration (A2).
- Still open on objectstack-ai#32849, measured on `e516f353` with the same probe (X
ships `fr-FR`, Z ships `en-US`, the pair row declares Z for `en-US`):
the read naming NO member serves Z's `zeta en-US`, both the plain bare
read and the bare layered read, while the bare layered member read
`?member=en-US` takes the override after this change. `/published` calls
the layered read with no member (`meta-item-history-routes.ts`), so it
reads that same exit; not measured at the door. The helper answers
`undefined` when no member is named; that exit lives in the item face
first and is left to the card.
- Measured through the protocol with a real `SchemaRegistry`, stored
rows and hydrated rows (the objectstack-ai#33815 footing), not through the HTTP save
door; the door's own step 1c is pinned at the protocol.

## Verification

Head `f23319f9` (merges of `origin/claude/area-E1-32622` `e57e7c05` and
of `origin/main` up to `27c2f1ea`, then `origin/main` again just before
opening; the derived gate union ran on `24ecb579`, the head before that
last merge). Every command ran under `scripts/pm/os-verify-lock.sh`.

- Before the last merge, on `96a0a52e`: `@objectstack/metadata-protocol`
typecheck 0, test `22902 passed | 43 skipped`; `@objectstack/objectql`
typecheck 0, test `13252 passed`; `@objectstack/rest` typecheck 0, test
`8763 passed | 355 skipped`; `@objectstack/runtime` typecheck 0, test
`12414 passed | 19 skipped`.
- After the merge, on `24ecb579` (incoming main touched
metadata-protocol, none of rest/runtime): rebuilt, metadata-protocol
typecheck 0, test `22926 passed | 45 skipped`; the harness file `321
passed`.
- `git merge-tree --write-tree --name-only` of `24ecb579` against every
open PR sharing a file, and main: objectstack-ai#33995 (`7b65fff0`, item face and
harness) clean, objectstack-ai#33979 (`999b09d9`, protocol.ts) clean, objectstack-ai#33885
(`e57e7c05`) clean, `origin/main` `27c2f1ea` clean. (Before the first
main merge the harness conflicted with main's objectstack-ai#33817 block; resolved by
keeping both describes.)
- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` on `24ecb579`: 75 derived families, every
one exit 0 (exit codes captured before any pipe).
`check:dual-build-cjs-loads` first answered exit 3 PREREQUISITE NOT MET
(no dist for 41 packages) and answered 0 after a whole-tree `pnpm turbo
run build --concurrency=2` under the lock; `check:type-check-debt` was
interrupted mid-run once and re-run to exit 0. `--ran`: 75 derived, 75
run, 0 NOT-MEASURED, 0 UNRUN. Body gates on this body:
`check-changeset-no-major` 0, `check-adr-0087-registration` 0 (with the
PR payload too), `check-closing-keyword-parity` 0 (`GITHUB_EVENT_PATH`),
`check-partof-closing-keyword` 0 (`PR_BODY`).
- `pnpm lint`: exit 0 on `24ecb579`.
- After the last merge of `origin/main` (14 commits; it touched
`protocol-meta-item-reads.ts` and objectql `registry.ts`, not this
diff), on `f23319f9`: closure rebuilt, metadata-protocol typecheck 0 and
test `22926 passed | 45 skipped`, objectql typecheck 0, the harness file
`321 passed`; ratchet families re-run there: `check:type-check-debt` 0,
`check:type-check-coverage` 0, `check:nul-bytes` 0.
- After objectstack-ai#33885 merged: merge of `origin/main` `dfb8ed35` → head
`c9112d29`. The one add/add conflict was objectstack-ai#33885's own changeset,
resolved to main's landed text; none of this PR's files conflicted.
Closure rebuilt, metadata-protocol typecheck 0, objectql typecheck 0,
harness `321 passed`, all under the verify lock.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
<!-- signed: domain:server#5 · zhuangjianguo ·
session_01QsR2jTkZnXtRhuEiiyidvJ -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
…the holder's own object under a disabled holder

Since the envelope is grafted only at the holder's own (object, name), a
package-less action reaches the withhold arm unstamped: on another object it
binds to no holder and is served, on the holder's object it is withheld.
The changeset names the 409 to 501 move on an engine without by-name reads.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Request: delta review · PR #33995 · area S5 · Fixes #33385, #33401 · head 0f5f95d08060d9c68390c6fe4f11bfece0ffb084 (final, green)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0f5f95d08060d9c68390c6fe4f11bfece0ffb084
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-exact-qualifier.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-list-reads.ts, packages/rest/src/import-mapping.ts, packages/rest/src/meta-qualified-item-route.ts, packages/rest/src/rest-server.ts, packages/runtime/src/domains/meta.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/objectql/src/package-scoped-exact-qualifier.test.ts, packages/rest/src/import-integration.test.ts, packages/rest/src/meta-qualified-item-route.test.ts, packages/runtime/src/domains/meta-qualified-item-read.test.ts + read, not reviewed: packages/metadata-protocol/src/protocol-artifact-lookup.ts (lookupArtifactItem), packages/objectql/src/registry.ts (overlaySlotBinding, overlayRowBinding), and the cited code named in the base record. Not reviewed: the changeset, content/docs/**, TSDoc and comments (prose faces).

Delta round, first. Base record: 6905931301 at head 69f4887 (PASS, S1 open, N1 to N5). Inputs added this round: the area's delta request 6907727788 and the dev delta report 6907712796. git diff 4ccf153e 0f5f95d0 was read in full: one test file (+55) and one changeset line.

① Derived judgments

  • The merge (4ccf153, parents 69f4887 and main 35cc663) moved none of this PR's own source hunks. The PR's net diff against main at the new head is line-for-line the net diff at 69f4887 over the same 14 files, apart from this round's changeset sentence and the new test block. Right.
  • Two PR source files differ between 69f4887 and 0f5f95d: protocol-meta-item-face.ts and rest-server.ts, 5 lines each. Each delta has the same patch-id as main's own change to that file between the old merge-base and 35cc663 (fix(metadata-protocol): the bare layered read serves a member's declared override as effective #34169 exports declaredMemberOverrideAddressOf and extends its TSDoc; a TSDoc paragraph on the default locale in rest-server.ts). Both are clean merge resolutions; neither touches a hunk of this PR.
  • The three other test files that differ carry main's additions only; the PR's own additions to them are unchanged.
  • No accept-set or public-surface change beyond the base record's list. The new pins move no answer: both action cells are CONTROLs.

② Semver level

Unchanged and still right on the merged tree: patch on @objectstack/metadata-protocol, @objectstack/rest and @objectstack/runtime, Clause-②: no (narrowing), Metadata-protocol: none, the ! title, the BREAKING banner and the ADR-0087 marker. The body and the changeset carry the same declaration lines. The changeset's new sentence declares a refusal-to-refusal move and changes no level.

③ Boundary flags

Fresh review on the seat's order: review#2 did not answer the area's request 6904125301 (00:39Z) or the seat's mailbox knock 6904921008 (01:37Z).

④ Design judgment

S1: closed

Both legs of #33401's action CONTROL are pinned in package-scoped-exact-qualifier.test.ts under a disabled holder, in both registration orders, with re-enable asserted in every cell: on another object the package-less action is served with no _packageId, before and after re-enable; on the holder's own object it is withheld, and served under the holder's envelope once re-enabled.

The area's correction of the base record holds on the merged tree. I read both legs as decided by this PR's arm. lookupArtifactItem on main grafts the one same-object holder's envelope, counting disabled holders, so the same-object item reaches the face stamped; packagelessRowWithheldHolder returns at its stamp check and the face's existing stamped-item rules withhold it, as on main. Only the other-object leg is decided by this PR's arm, through overlayRowBinding answering null. The reported ablations agree; they were not re-run.

The body's "unreachable" note is replaced by a correction that is true of the tree, with one loose sentence (N6). The table carries both action rows, FROM equal to TO.

N3: fixed on the prose faces. The 409 to 501 row is in the body and the changeset has the matching sentence; both are right against refuseUnjudgeableByNameRead.

N1, N2, N4, N5: unchanged, carried as in ③.

N6 (nit) — the body's correction says both legs "reach the new arm through overlayRowBinding"; the same-object leg leaves the arm at the stamp check and never asks it, as the same paragraph and the test's TSDoc go on to say. The body also still calls #34169 open; it merged and is inside the merged main. Prose face.

N7 (nit) — the body and the dev report name #34259 as the carrier of N2 and N5, and that card is closed not_planned. Either the seat accepts those unpinned cells as a deviation, or they need an open card; the body's line should say which. Prose face.

No must-fix, no should-fix.

Implemented-by: claude/area-E1b-33385
Reviewed-by: session_01QsR2jRMKz5NhWVrE4E1U5x

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Review — PASS

Head-sha: 0f5f95d08060d9c68390c6fe4f11bfece0ffb084
Reviewer: review-c · read 2026-11-16T05:00Z · delta on 69f48871 (FAIL-not-landable 6905939177), under the seat's option (a); one merge of main (4ccf153) and one test commit (0f5f95d)
Implemented-by: claude/area-E1b-33385 · Reviewed-by: session_01QsR2jRMKz5NhWVrE4E1U5x
Contract-review record at this head: 6907783393 (CONTRACT_REVIEW_TIER delta from the same isolated sub-agent that wrote 6905931301, adopted). VERDICT PASS, no must-fix, no should-fix.

Closed:

The merge: it moved none of this PR's own hunks. The two PR source files that changed (protocol-meta-item-face.ts, rest-server.ts, 5 lines each) carry main's hunks only, with matching patch-ids.

Declarations: unchanged and still right on the merged tree: patch ×3, Clause-②: no (narrowing), !, BREAKING banner, ADR-0087 marker.

Checks: 40 success, 17 skipped, none red; mergeable_state: clean. git merge-tree against the newer main is also clean.

Before close (prose faces; the head does not move):

Not governed: the area lands this PR per landing-operations.md.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

席位核对

Verdict: ACCEPT · head 0f5f95d08060d9c68390c6fe4f11bfece0ffb084 · area S5 lands it (not governed)

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 06:19
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 66f6638 Nov 16, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E1b-33385 branch November 16, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant